
import "./less/index.css";
import "./less/less.less";
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import Home from "./containers/Home";
import Mine from "./containers/Mine";
import Layout from "./containers/layout";
import "./lib/rem";
import VConsole from "vconsole";



import store from "./store";
import { Provider } from "react-redux"
//热更新
if (module.hot) {
    module.hot.accept();
}
var vConsole = new VConsole();

ReactDOM.render(
    <Provider store={store} >
        <Router>
            <Layout>
                <Switch>
                    <Route exact path="/" component={Home}></Route>
                    <Route path='/mine' component={Mine}></Route>
                </Switch>
            </Layout>
        </Router>
    </Provider>
    , document.querySelector("#app")
)





